var HttpRequest = function(){

    var _getXhr = function()
    {
        return (typeof XDomainRequest != 'undefined' && typeof ArrayBuffer == 'undefined') ? new XDomainRequest() : new XMLHttpRequest();
    }
    var _send = function(request){
        var xhr = _getXhr();
        xhr.open('POST', request.url, true);
        xhr.send(request.data);
        return xhr;
    }
return {
    send : function(request){
        return _send(request);
    }
}
}();